package com.bdk.middle.base.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bdk.middle.base.api.domain.DictionariesDO;
import com.bdk.middle.base.api.query.DictionariesQueryDO;
import com.bdk.middle.base.core.entity.DictionariesEntity;
import com.bdk.middle.common.result.ResultDO;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Reagan
 * @since 2021-03-22
 */
public interface DictionariesService extends IService<DictionariesEntity> {

    /**
     * 添加用户
     * @param domain 用户DO
     * @return ResultDO
     */
    public ResultDO add(DictionariesDO domain);

    /**
     * 修改用户信息
     * @param domain 用户DO
     * @return ResultDO
     */
    public ResultDO edit(DictionariesDO domain);

    /**
     * 获取用户详情
     * @param id 用户ID
     * @return ResultDO
     */
    public ResultDO get(String id);

    /**
     * 删除用户
     * @param id 用户ID
     * @param modifier 修改人用户名
     * @return ResultDO
     */
    public ResultDO remove(String id, String modifier);

    /**
     * 查找用户列表分页
     * @param query 查询DO
     * @return ResultDO
     */
    public ResultDO find(DictionariesQueryDO query);
}
